<%= header %>
<script>
/*eslint-disable no-unused-vars*/
window.BOOMR_CONSENT_CONFIG = {
	enabled: true,
	optInRequired: true
};
</script>
<%= consentInlinePlugin %>
<!--
Onload should happen after boomerang receives config and an early beacon should get sent
config -> early beacon -> onload -> normal beacon
-->
<script>
window.localStorage.removeItem("_boomr_" + "LOGN");

// Force navigation to TYPE_NAVIGATE
if (window.performance) {
	window.performance.__defineGetter__("navigation", function() {
		return {type: 0, redirectCount: 0};
	});
}
</script>
<%= boomerangSnippet %>

<script src="10-no-opt-in-early-beacon-config-before-onload.js" type="text/javascript"></script>
<script type="text/javascript">

// simulate delayed config
setTimeout(function() {
	BOOMR_test.init({
		site_domain: document.domain,
		testAfterOnBeacon: false,
		Early: {
			enabled: true
		},
		onBoomerangLoaded: function() {
			BOOMR.subscribe("page_ready", function() {
				setTimeout(function() {
					BOOMR_test.runTests();
				}, 400);
			});
		}
	});
}, 200);

</script>
<img src="/delay?delay=2000&amp;file=/assets/img.jpg" style="width: 100px" />
<%= footer %>
